package site.yunnong.atvris.service.domain;

import lombok.Data;
import org.springframework.data.elasticsearch.annotations.DateFormat;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import javax.persistence.Id;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author zjh
 * @date 2021/9/26 16:24
 */
@Data
@Document(indexName = "atvris", shards = 1, replicas = 0)
public class EsUser implements Serializable {
    
    private static final long serialVersionUID = 1L;

    @Id
    private Long id;
    @Field(analyzer = "ik_max_word", type = FieldType.Text)
    private String nickname;
    
    private Integer role;
    
    private Integer integration;

    private Integer growth;

    private String job;

    private String personalSign;

    private String avatar;

    private String province;

    private String city;

    private String district;

    @Field(type = FieldType.Date, format = DateFormat.custom, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime registerTime;

    private Integer gender;

    private Integer age;

    private Integer education;

    private Integer followCount;

    private Integer fansCount;

    private Integer likedCount;

    private Integer viewCount;

    private Integer readCount;

    private Integer videoCount;
    
}
